package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Manager;
import com.jenings.shop.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ManagerMapper extends BaseMapper<Manager> {
    //管理员接口
    //查询全部管理员
    public List<Manager> selectAll();
    //查询部分管理员
    public List<Manager> selectSome(String glyname);
    //查询管理员个人信息
    public Manager selectByte(String glyname);
    //修改个人信息
    public boolean updateByte(Manager manager);
    //删除管理员
    public boolean delByte(Integer glyid);
    //增加管理员
    public boolean addByte(Manager manager);
}
